package com.hz.house.enums;
/**
 * 装修情况查询条件枚举
 * @author lfw
 *
 */
public enum SearchDecorateConditionEnum {

	
	JING_ZHUANG(1,"精装","hardcover"),
	QING_SHUI(2,"清水","rinsing");
	
	private int id;
	
	private String name;
	
	private String type;
	
	private String  mix = "commixture";//精装清水都包含，选中上面一个，这个也要在查询的包含
	
	
	SearchDecorateConditionEnum(int id,String name,String type){
		this.id=id;
		this.name=name;
		this.type=type;
	}


	/**
	 *  根据id获取查询条件
	 * @param id
	 * @return
	 */
	public static SearchDecorateConditionEnum getSearchDecoById(int id) {
		SearchDecorateConditionEnum[] all = SearchDecorateConditionEnum.values();
		for(SearchDecorateConditionEnum s:all) {
			if(s.getId()==id)
				return s;
		}
		return null;
	}
	
	
	public int getId() {
		return id;
	}


	public String getName() {
		return name;
	}


	public String getType() {
		return type;
	}


	public String getMix() {
		return mix;
	}
}
